package WuHanTrainStation;

import java.io.Serializable;

//实体类
public class Train implements Serializable {
    String trains;      //车次
    String arrivingTime;        //到达时间
    String departureTime;       //出发时间
    String type;        //车辆种类
    String field;       //场
    String station;     //车站

    public Train(String trains, String arrivingTime, String departureTime, String type, String field, String station) {
        this.trains = trains;
        this.arrivingTime = arrivingTime;
        this.departureTime = departureTime;
        this.type = type;
        this.field = field;
        this.station = station;
    }

    public Train() {
    }

    public String getTrains() {
        return trains;
    }

    public void setTrains(String trains) {
        this.trains = trains;
    }

    public String getArrivingTime() {
        return arrivingTime;
    }

    public void setArrivingTime(String arrivingTime) {
        this.arrivingTime = arrivingTime;
    }

    public String getDepartureTime() {
        return departureTime;
    }

    public void setDepartureTime(String departureTime) {
        this.departureTime = departureTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }


    @Override
    public String toString() {
        return "Train{" +
                "trains='" + trains + '\'' +
                ", arrivingTime='" + arrivingTime + '\'' +
                ", type='" + type + '\'' +
                ", field='" + field + '\'' +
                ", station='" + station + '\'' +
                '}';
    }
}